
//底部锤子线买入
let buyByRedUp=function(selYear,i,condect,buySell,dates){
	
	let item =this.vo(selYear[i]); 
	//正锤子
    let isRed = item.open<item.close;
	let cubeBody = Math.abs(item.close-item.open);//K线实体长度
	//倒凸
	let cubeTick = isRed?item.open-item.min:item.close-item.min;//底部线长度
	let cubeTop = isRed?item.max-item.close:item.max-item.open;//顶部线长度
	
	let isHammerDb = cubeBody*2.5<cubeTick;//底部线是K体2.5倍
	 let  isHamerNoTop =  cubeBody > cubeTop;//K体大于顶部线
	 
	//倒锤子 凸
	let isReverseHammerDb = cubeBody*2.5<cubeTop;
	let isHammerNoTop = cubeBody>cubeTick;
	
	//底部几天
	 let isDownDay = this.preDownDay(3,selYear,i);
	 
	let isHammer = isHammerDb && isHamerNoTop;
	let isReverseHammer = isReverseHammerDb &&isHammerNoTop;
	
	if(isDownDay && (isHammer || isReverseHammer) &&condect.time==0){
			return {flag:true,str:"BH\n"};
	//	this.buyHandle("BH",condect,item,buySell,dates[i]);
	}
		return {flag:false,str:"BH\n"};
};